#include<iostream>

using namespace std;

int main()
{
  int a[10],i,n,aux;
  cout<<"n=";cin>>n;
  for(i=1;i<=n;i++)
 { cout<<"a["<<i<<"]=";
   cin>>a[i];
 }

aux=a[1];
for(i=1;i<=n;i++)
{ a[i]=a[i+1];
  a[n]=aux;
}


for(i=1;i<=n;i++)
cout<<a[i];
}

